﻿<Window xmlns:UserControls="clr-namespace:MyPoints.UserControls"  x:Class="MyPoints.AboutWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:MyPoints"
        mc:Ignorable="d"
        Title="About..." Height="500" Width="300" FontFamily="Museo 300" Background="LightGray">
  <DockPanel LastChildFill="True">
    <StackPanel Margin="8 8 8 8" DockPanel.Dock="Top">
      <Label FontSize="24" FontStyle="Oblique" Content="{Binding Title}"/>
      <UserControls:UrlTextBlock NavigateUrl="{Binding Url}" Text="{Binding Url}" Margin="16 0 0 0" />
      <Label Content="{Binding Version}" />
      <Label Content="{Binding Author}" />
      <UserControls:UrlTextBlock NavigateUrl="{Binding MailTo}" Text="{Binding Mail}" Margin="16 0 0 0" />
      <TextBlock Text="{Binding Description}" Margin="0 16 0 16" TextWrapping="Wrap"/>
    </StackPanel>
    <DockPanel DockPanel.Dock="Bottom" >
      <Button x:Name="btnOk" Content="Ok" Margin="48 8 48 8" Click="btnOk_Click" />
    </DockPanel>
    <DockPanel LastChildFill="True" Margin="0 32 0 0">
      <Label DockPanel.Dock="Top" Content="Thanks to:" />
      <ScrollViewer>
        <ItemsControl ItemsSource="{Binding Thanks}">
          <ItemsControl.ItemTemplate>
            <DataTemplate>
              <StackPanel Orientation="Vertical" Margin="0 4 0 4" >
                <TextBlock Text="{Binding Text}"  TextWrapping="Wrap" />
                <UserControls:UrlTextBlock Margin="16 0 0 0" Text="{Binding Url}" NavigateUrl="{Binding Url}" />
              </StackPanel>
            </DataTemplate>
          </ItemsControl.ItemTemplate>
          <ItemsControl.ItemsPanel>
            <ItemsPanelTemplate>
              <StackPanel Margin="8 8 8 8">
              </StackPanel>
            </ItemsPanelTemplate>
          </ItemsControl.ItemsPanel>
        </ItemsControl>
      </ScrollViewer>
    </DockPanel>
  </DockPanel>
</Window>
